package com.zpark.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zpark.entity.Project;
import com.zpark.mapper.ProjectMapper;
import com.zpark.service.IProjectService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lx
 * @since 2024-03-18
 */
@Service
public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> implements IProjectService {
    @Resource
    private ProjectMapper projectMapper;
    @Override
    public List<Project> selectByCvId(int cvId) {
        QueryWrapper<Project> wrapper = new QueryWrapper<>();
        wrapper.eq("cv_id",cvId);
        List projects = projectMapper.selectList(wrapper);
        return projects;
    }
}
